package com.hmall.search.constant;

/**
 * ES常量类
 *
 * @Name EsConstant
 * @Author admin
 * @Date 2022-08-05 15:49
 */
public interface EsConstant {

    /**
     * es服务器主机
     */    String ES_URL = "http://192.168.115.130:9200";

    /**
     * 索引名称
     */
    String Itme_INDEX = "item";




    /**
     * es端口
     */
//    int ES_PORT = 9200;



//    /**
//     * mapping结构
//     */
//    String MAPPINGS = "\"mappings\": {\n" +
//            "    \"properties\": {\n" +
//            "      \"id\":{\n" +
//            "        \"type\": \"keyword\"\n" +
//            "      },\n" +
//            "      \"name\":{\n" +
//            "        \"type\": \"text\",\n" +
//            "        \"analyzer\": \"text_anlyzer\",\n" +
//            "        \"search_analyzer\": \"ik_smart\",\n" +
//            "        \"copy_to\": \"all\" \n" +
//            "      },\n" +
//            "      \"price\":{\n" +
//            "        \"type\": \"long\"\n" +
//            "      },\n" +
//            "      \"score\":{\n" +
//            "        \"type\": \"integer\"\n" +
//            "      },\n" +
//            "      \"brand\":{\n" +
//            "        \"type\": \"keyword\",\n" +
//            "        \"copy_to\": \"all\"\n" +
//            "      },\n" +
//            "      \"image\":{\n" +
//            "        \"type\": \"keyword\",\n" +
//            "        \"index\": false\n" +
//            "      },\n" +
//            "      \"category\":{\n" +
//            "        \"type\": \"keyword\", \n" +
//            "        \"copy_to\": \"all\"\n" +
//            "      },\n" +
//            "      \"sold\":{\n" +
//            "        \"type\": \"integer\"\n" +
//            "      },\n" +
//            "      \"commentCount\":{\n" +
//            "        \"type\": \"integer\",\n" +
//            "         \"index\": false\n" +
//            "      },\n" +
//            "      \"isAD\":{\n" +
//            "        \"type\": \"boolean\"\n" +
//            "      },\n" +
//            "      \"all\":{\n" +
//            "        \"type\": \"text\",\n" +
//            "        \"analyzer\": \"text_anlyzer\",\n" +
//            "        \"search_analyzer\": \"ik_smart\"\n" +
//            "      },\n" +
//            "      \"suggestion\":{\n" +
//            "          \"type\": \"completion\",\n" +
//            "          \"analyzer\": \"completion_analyzer\"\n" +
//            "      }\n" +
//            "    }\n" +
//            "  }\n" +
//            "}";


}
